package com.ihisomp.base;

/**
 * 标题: ResultEnum.java
 * 业务描述: 返回结果枚举
 * 作者: zy
 * 日期: 2021/9/10
 * 版本: V1.0
 */
public enum ResultEnum {

    SUCCESS(20000, "成功"),
    ERROR(99999, "错误");

    private Integer code;
    private String desc;

    ResultEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
